package cn.edu.tju.elm.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Size;

/**
 * ClassName: CommentUpdateDTO
 * Package: cn.edu.tju.elm.dto
 * Description: 评论更新DTO
 *
 * @Author System Generated
 * @Create 2025/10/30
 * @Version 1.0
 */
public class CommentUpdateDTO {
    
    @Min(value = 1, message = "评分最低为1星")
    @Max(value = 5, message = "评分最高为5星")
    private Integer rating;
    
    @Size(max = 1000, message = "评论内容不能超过1000字")
    private String content;
    
    @Size(max = 500, message = "商家回复不能超过500字")
    private String reply;
    
    private Boolean deleted;

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}



